<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>商家管理系统</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css"
	media="all">
<link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
<link rel="stylesheet" type="text/css"
	href="/css/plugins/dropzone/basic.css" />
<link rel="stylesheet" type="text/css"
	href="/css/plugins/dropzone/dropzone.css" />
<link rel="stylesheet" type="text/css"
	href="/css/plugins/layui-formSelect/formSelects-v4.css" />
</head>
<body>
	<div class="layui-fluid">
		<div class="layui-card">
			<div class="layui-card-header">客服信息</div>
			<div class="layui-card-body">
				<form class="layui-form" id="serviceForm" lay-filter="component-form-element">
					<c:if test="${business.onOff == 1 || business.onOff == 2}">
						<div class="layui-row layui-col-space12 layui-form-item">
							<div class="layui-col-lg6">
								<label class="layui-form-label">联系电话:</label>
								<div class="layui-input-block">
									<input type="text" name="linkPhone" value="${business.linkPhone }" lay-verify="required"
										placeholder="" autocomplete="off" class="layui-input">
								</div>
							</div>
						</div>
					</c:if>
					<c:if test="${business.onOff == 0 || business.onOff == 2}">
						<div class="layui-row layui-col-space12 layui-form-item">
							<div class="layui-col-lg6">
								<label class="layui-form-label">联系QQ:</label>
								<div class="layui-input-block">
									<input type="text" name="linkQq" value="${business.linkQq }" lay-verify="required"
										placeholder="" autocomplete="off" class="layui-input">
								</div>
							</div>
						</div>
						<div class="layui-row layui-col-space12 layui-form-item">
							<div class="layui-col-lg6">
								<label class="layui-form-label">联系微信:</label>
								<div class="layui-input-block">
									<input type="text" name="linkWx" value="${business.linkWx }" lay-verify="required"
										placeholder="" autocomplete="off" class="layui-input">
								</div>
							</div>
						</div>
						<!-- <div class="layui-row layui-col-space12 layui-form-item">
							<div class="layui-col-lg6">
								<label class="layui-form-label">微信二维码</label>
	                            <div class="layui-input-block">
	                                <label for="wxUrl" class="layui-col-sm2 layui-btn layui-btn-sm layui-btn-primary">二维码</label>
	                                <input accept=".jpg,.png,.gif,.jpeg" type="file" style="display:none;"
	                                       name="wxUrl" id="wxUrl"
	                                       onchange="showImg(this)"/>
	                                <img id="img" src="${business.linkWxUrl==""?' ':business.linkWxUrl}" width="200px" height="130px"/>
	                            </div>
							</div>
                        </div> -->
					</c:if>
					<div class="layui-form-item">
						<div class="layui-input-block">
							<button class="layui-btn" lay-submit type="button" onclick="FormSubmitCurrent('#serviceForm','/business/businessServiceEdit')"
								lay-filter="component-form-element">保存</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
	<script src="/layuiadmin/layui/layui.js"></script>
	<script type="text/javascript" src="/js/jquery/jquery.min.js"></script>
	<script type="text/javascript" src="/js/jquery.form.js"></script>
	<script type="text/javascript" src="/js/common.js"></script>
	<script type="text/javascript" src="/js/plugins/image/previewImg.js"></script>
	<script>
		layui.config({
			base : '/layuiadmin/' //静态资源所在路径
		}).extend({
			index : 'lib/index' //主入口模块
		}).use([ 'index', 'form', 'laydate', 'table' ], function() {
			var $ = layui.$
		    ,admin = layui.admin
		    ,element = layui.element
		    ,form = layui.form;
			
// 			form.on('submit(component-form-element)', function(data){
// 				FormSubmit("serviceForm", "/business/businessServiceEdit");
// 			});
		});
	</script>
</body>
</html>